package com.eeds.common.enums;

import com.eeds.common.enums.base.BaseEnum;

public enum  TemplateEnum implements BaseEnum {
    /**
     * 供电方案
     */
    TEMPLATE_SUPPLY_SCHEME(1, "gen-template/1-1.xml.vm"),
    /**
     * 中间检查
     */
    TEMPLATE_EXAMINATION(2, "gen-template/examination.xml.vm"),

    ;


    private final int value;

    private final String description;


    TemplateEnum(int value, String description) {
        this.value = value;
        this.description = description;
    }


    public static TemplateEnum valueOf(Integer value) {
        for (TemplateEnum item : values()) {
            if (item.getValue() .equals(value)) {
                return item;
            }
        }
        return null;
    }


    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String getDescription() {
        return description;
    }

    public TemplateEnum get(Integer value) {
        return TemplateEnum.valueOf(value);
    }


    @Override
    public String toString() {
        return String.valueOf(this.value);
    }

}
